import React from "react";
import './index.less';

export default class FormField extends React.Component {
  render() {
    const { field: { type, name } } = this.props;

    return (
      <div className='wea-edc-com' data-id={type}>
        <i className={`icon-edc-f-${type.toLowerCase()}`}></i>
        <span className='wea-f12 f-ellipsis'>{name}</span>
      </div>
    );
  }
}

FormField.defaultProps = {
  field: {},
};